package com.zpark.pojo;


import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import tk.mybatis.mapper.annotation.KeySql;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

@AllArgsConstructor
@NoArgsConstructor
@Data
//指定实体类映射的表
@Table(name="ranking1")
public class Ranking {
    //设置主键自增
    @Id
    @KeySql(useGeneratedKeys = true)
    private Integer id;

    //匹配驼峰命名
    @Column(name = "film_index")
    private Integer filmIndex;

    //匹配驼峰命名
    @Column(name = "film_name")
    private String filmName;

    //匹配驼峰命名
    @Column(name = "film_actor_name")
    private String filmActorName;

    //匹配驼峰命名
    @Column(name = "film_feasibly")
    private String filmFeasibly;

    @Transient
    private boolean a;
}
